container: fix wrong branching logic
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Apr 2012 16:12:32 +0000 (12:12 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Apr 2012 16:12:32 +0000 (12:12 -0400)
If the resize mode of the container was GTK_RESIZE_IMMEDIATE we would
also fall trough to the next case in the switch, and always throw an
assertion.

gtk/gtkcontainer.c

index 856df7d2eb5d356bce69d8ded4e090799e1c9b41..be686027886eb59904fe041c36990632262847d5 100644 (file)
@@ -1721,6 +1721,7 @@ gtk_container_queue_resize_handler (GtkContainer *container)
 
         case GTK_RESIZE_IMMEDIATE:
           gtk_container_check_resize (container);
+          break;
 
         case GTK_RESIZE_PARENT:
         default: